home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
utilstem
/
util1
/
rm.doc
< prev
next >
Wrap
Text File
|
1988-02-27
|
1KB
|
45 lines
RM.EXE -- A UNIX-style file and directory removing utility.
Usage: rm [-firv] filespec
Command line switches:
-f = Force removal of read-only files.
-i = Inquire before removing files.
-r = Recursively remove subdirectories (DANGEROUS).
-s = Summary of disk space reclaimed and items removed.
-t = Test mode, no files or directories removed.
-v = Verbose mode, call out files as they are removed.
Filespec:
Any DOS filename, with or without wildcard characters.
Typical examples:
rm *.bak removes files from current directory
rm *.*
rm -rv \junk removes the directory "junk" and all contents
and prints filenames as they are removed
rm -fr c:\ removes all files from drive c:, even read-
only files
rm -r c:\*.bak removes "*.bak" files from directory c:\
ONLY, does NOT recursively descend and delete
other occurances of "*.bak"
rm -rts c:\dir1 lists the total number of files that will be
removed by this command, but does NOT remove
the files
I developed this program to purge unneeded directories from my hard disk. Let
me caution you: This program can delete far more than just "unneeded direc-
tories." It can WIPE OUT your hard disk before you can say "oh sh*t!"
To be on the safe side, try out your command first using the "test mode" and
examine the files that will be removed with either the "verbose" or "summary"
command line switches.
Joe Barnhart
CIS 76174,1573